import { GET, POST, DELETE, PUT } from "./libs/restful-api";
import { request, API_CONFIG } from "./libs/request";
import { UPLOAD } from "./libs/upload";
import { defaultConfig } from "./libs/log/index";
import { HTTP_CONFIG } from "@config/index";

// 设置是否开启线上debug
defaultConfig.debugState = HTTP_CONFIG.debugState;

// 接口地址设置
API_CONFIG.API_HOST = HTTP_CONFIG.API_HOST;

export {
    GET,
    POST,
    DELETE,
    PUT,
    UPLOAD,
    request,
}